import axios from '@/api/fetch';
import SERVER from '@/api/server';

export const queryContCustomer = params => axios.get(`${SERVER.DMSCLOUD_PART}/basedata/customerReso`, { params });

export const addCustomerReso = params => axios.post(`${SERVER.DMSCLOUD_PART}/basedata/customerReso`, params);

export const modifyByCustomerTypeCode = (params, CUSTOMER_TYPE_CODE) => axios.put(`${SERVER.DMSCLOUD_PART}/basedata/customerReso/modifyByCustomertypecode/${CUSTOMER_TYPE_CODE}`, params);

// 删除供应商类型
export const deleteRowData = params => axios.post(`${SERVER.DMSCLOUD_PART}/basedata/customerReso/deleteType`, params);
